package com.tanhua.model.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

//访客数据
@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "visitors")
public class Visitors implements java.io.Serializable{

    private static final long serialVersionUID = 2811682148052386573L;
	//比如1号用户访问了2号用户
    //userId = 2
    //visitorUserId = 1
    private ObjectId id;

    private Long userId; //被访问的用户id
    private Long visitorUserId; //访客


    private String from; //来源，如首页、圈子等
    private Long date; //来访时间
    private String visitDate;//来访日期   yyyyMMdd
    private Double score; //得分

}